package cn.jd.payServer;

import cn.jd.User;
import feign.hystrix.FallbackFactory;

public class HystrixClientFallbackFactory implements FallbackFactory<UserServer> {
    @Override
    public UserServer create(Throwable throwable) {
        return new UserServer() {
            @Override
            public User UserById(Integer id) {
                return new User(id,"天府新谷","三号楼");
            }
        };
    }
}
